package com.ruoyi.resSys.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 记录管理对象 workresults
 * 
 * @author binbin
 * @date 2024-05-19
 */
public class Workresults extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 成果ID */
    private Long resultId;

    /** 学生ID */
    @Excel(name = "学生ID")
    private Long studentId;

    /** 学生名称 */
    @Excel(name = "学生名称")
    private String studentName;

    /** 工作时长（单位：小时） */
    @Excel(name = "工作时长", readConverterExp = "单=位：小时")
    private Long workTime;

    /** 任务ID */
    @Excel(name = "任务ID")
    private Long taskId;

    /** 成果描述 */
    @Excel(name = "成果描述")
    private String resultDescription;

    /** 提交日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提交日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date submitDate;

    public void setResultId(Long resultId) 
    {
        this.resultId = resultId;
    }

    public Long getResultId() 
    {
        return resultId;
    }
    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }
    public void setStudentName(String studentName) 
    {
        this.studentName = studentName;
    }

    public String getStudentName() 
    {
        return studentName;
    }
    public void setWorkTime(Long workTime) 
    {
        this.workTime = workTime;
    }

    public Long getWorkTime() 
    {
        return workTime;
    }
    public void setTaskId(Long taskId) 
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }
    public void setResultDescription(String resultDescription) 
    {
        this.resultDescription = resultDescription;
    }

    public String getResultDescription() 
    {
        return resultDescription;
    }
    public void setSubmitDate(Date submitDate) 
    {
        this.submitDate = submitDate;
    }

    public Date getSubmitDate() 
    {
        return submitDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("resultId", getResultId())
            .append("studentId", getStudentId())
            .append("studentName", getStudentName())
            .append("workTime", getWorkTime())
            .append("taskId", getTaskId())
            .append("resultDescription", getResultDescription())
            .append("submitDate", getSubmitDate())
            .toString();
    }
}
